<?php

/*
	[BuyPg] (C) 2010-2011 Buypg
	$Id: YouhuiClassAction.class.php 2011-10-13 10:01:49 wufujun $
 */
if (!defined('THINK_PATH')) {
	exit('Access Denied');
}

class YouhuiClassAction extends BpAction{
	function _filter(&$map){
		$map['title'] = array('like',"%".$_POST['title']."%");
	}
	
	//赋值可用分类
	public function _before_add(){
		$YouhuiClassModel = D('YouhuiClass');
		$YouhuiClass = $YouhuiClassModel->where('status = 1')->select();
		$this->assign('YouhuiClass',$YouhuiClass);
	}
	
	//赋值可用分类
	public function _before_edit(){
		$YouhuiClassModel = D('YouhuiClass');
		$YouhuiClass = $YouhuiClassModel->where('status = 1')->select();
		$this->assign('YouhuiClass',$YouhuiClass);
	}
}
?>
